package com.itlong.cloud.POJO.PO;

import com.itlong.cloud.annotation.ItlField;
import com.itlong.cloud.annotation.ItlTables;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * <desc>
 *    sip账号信息PO
 * </desc>
 *
 * @createDate 2017/10/12
 */
@ItlTables("subscriber")
@Data
@NoArgsConstructor
@EqualsAndHashCode(callSuper = true)
public class SubscriberPO extends BasePO implements Serializable {



   /* sip账号：云对讲设备默认sn  例如 00000067005020603，
    物业人员默认 项目编号+userId*/
    @ItlField(value="username",logicKey = "key")
    private String username;

    //sip域 根据项目所使用的sip从sip_cluster表中获取
    @ItlField("domain")
    private String domain;

    /*sip密码 云对讲默认sn  例如 00000067005020603
    物业人员默认 userId+项目编号,然后MD5加密
    */
    @ItlField("password")
    private String password;

    @ItlField("email_address")
    private String emailAddress;

    @ItlField("ha1")
    private String ha1;

    @ItlField("ha1b")
    private String ha1b;

    @ItlField("rpid")
    private String rpid;

    public SubscriberPO(String username, String password) {
        this.username = username;
        this.password = password;
    }
}